package com.csun.cmny.provider.service;

import com.csun.cmny.base.dto.LoginAuthDto;
import com.csun.cmny.core.support.IService;
import com.csun.cmny.provider.model.domain.OpcFlowMessage;
import com.csun.cmny.provider.model.dto.message.FlowMessageQueryDto;

import java.util.List;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-11-07 10:51
 * @Description:
 */
public interface OpcFlowMessageService extends IService<OpcFlowMessage> {

    /**
     * add omc flow message
     *
     * @param omcFlowMessage    the omc flow message
     * @param loginAuthDto      the login auth dto
     *
     * @return  the int
     */
    Integer add(OpcFlowMessage omcFlowMessage, LoginAuthDto loginAuthDto);

    /**
     * edit omc flow message
     *
     * @param omcFlowMessage    the omc flow message
     * @param loginAuthDto      the login auth dto
     *
     * @return  the int
     */
    Integer edit(OpcFlowMessage omcFlowMessage, LoginAuthDto loginAuthDto);

    /**
     * delete by id
     *
     * @param id    the omc flow message id
     *
     * @return  the int
     */
    Integer deleteById(Long id);

    /**
     * query omc flow message list with page
     *
     * @param flowMessageQueryDto   the flow message query dto
     *
     * @return  the list.
     */
    List<OpcFlowMessage> queryListWithPage(FlowMessageQueryDto flowMessageQueryDto);

}
